package com.iris.live.services.data.models;

import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;

/**
 * Created by yitianle on 2017/04/07.
 */
@SuppressWarnings("JpaDataSourceORMInspection")
@Entity
@Table(name = "si_bmbs_setting", schema = "live", catalog = "")
public class SibmbsSettingModel {
    private Integer id;
    private Integer stockId;
    private Integer carTypeId;
    private Integer setType;
    private String permit;
    private String vin;
    private Integer siSettingId;
    private String siBmbsCode;
    private BigDecimal siAmount;
    private Integer pNum; //与父级对应 便于编辑
    private Date validStartDate;//生效时间
    private Date validEndDate;//截止时间
    private Date createdTime;
    private Integer insertOrUpdate;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @Basic
    @Column(name = "stock_id")
    public Integer getStockId() {
        return stockId;
    }

    public void setStockId(Integer stockId) {
        this.stockId = stockId;
    }

    @Basic
    @Column(name = "permit")
    public String getPermit() {
        return permit;
    }

    public void setPermit(String permit) {
        this.permit = permit;
    }

    @Basic
    @Column(name = "vin")
    public String getVin() {
        return vin;
    }

    public void setVin(String vin) {
        this.vin = vin;
    }

    @Basic
    @Column(name = "si_setting_id")
    public Integer getSiSettingId() {
        return siSettingId;
    }

    public void setSiSettingId(Integer siSettingId) {
        this.siSettingId = siSettingId;
    }

    @Basic
    @Column(name = "si_bmbs_code")
    public String getSiBmbsCode() {
        return siBmbsCode;
    }

    public void setSiBmbsCode(String siBmbsCode) {
        this.siBmbsCode = siBmbsCode;
    }

    @Basic
    @Column(name = "si_amount")
    public BigDecimal getSiAmount() {
        return siAmount;
    }

    public void setSiAmount(BigDecimal siAmount) {
        this.siAmount = siAmount;
    }

    @Basic
    @Column(name = "created_time")
    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    @Basic
    @Column(name = "car_type_id")
    public Integer getCarTypeId() {
        return carTypeId;
    }

    public void setCarTypeId(Integer carTypeId) {
        this.carTypeId = carTypeId;
    }

    @Basic
    @Column(name = "set_type")
    public Integer getSetType() {
        return setType;
    }

    public void setSetType(Integer setType) {
        this.setType = setType;
    }

    @Basic
    @Column(name = "p_num")
    public Integer getpNum() {
        return pNum;
    }

    public void setpNum(Integer pNum) {
        this.pNum = pNum;
    }

    @Basic
    @Column(name = "valid_start_date")
    public Date getValidStartDate() {
        return validStartDate;
    }

    public void setValidStartDate(Date validStartDate) {
        this.validStartDate = validStartDate;
    }

    @Basic
    @Column(name = "valid_end_date")
    public Date getValidEndDate() {
        return validEndDate;
    }

    public void setValidEndDate(Date validEndDate) {
        this.validEndDate = validEndDate;
    }

    @Transient
    public Integer getInsertOrUpdate() {
        return insertOrUpdate;
    }

    public void setInsertOrUpdate(Integer insertOrUpdate) {
        this.insertOrUpdate = insertOrUpdate;
    }
}
